package com.hziee.graduate.ticket.controller;

import com.hziee.graduate.ticket.dto.R;
import com.hziee.graduate.ticket.entity.Seat;
import com.hziee.graduate.ticket.entity.SeatSchedule;
import com.hziee.graduate.ticket.service.SeatScheduleService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("seatSchedule")
public class SeatScheduleController {

    @Resource
    SeatScheduleService seatScheduleService;

    @GetMapping("/getSeatBySchedule/{scheduleId}")
    public R<List<SeatSchedule>> getSeatByRoom(@PathVariable Long scheduleId) {
        return seatScheduleService.getSeatBySchedule(scheduleId);
    }

}

